//
//  RelaxViewController.m
//  AndCampus
//
//  Created by 史宵宵 on 2018/1/3.
//  Copyright © 2018年 史宵宵. All rights reserved.
//

#import "RelaxViewController.h"
#import "MeditationListViewController.h"
#import "MantuoluoIntroduceViewController.h"
//#import "YJLoginViewController.h"

@interface RelaxViewController ()

@end

@implementation RelaxViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    UIImage *image = [UIImage imageNamed:@"relax_bg"];
    self.view.layer.contents = (id) image.CGImage;
    self.title = @"放松区";
}
- (IBAction)selectDatura:(id)sender {
    MantuoluoIntroduceViewController *mantuoluoIntroduceVC = [[MantuoluoIntroduceViewController alloc]init];
    [self.navigationController pushViewController:mantuoluoIntroduceVC animated:YES];
}
- (IBAction)selectMeditation:(id)sender {
    MeditationListViewController *meditationVC = [[MeditationListViewController alloc]init];
    [self.navigationController pushViewController:meditationVC animated:YES];
}
- (IBAction)selectBombBottle:(id)sender {
//    if (strIsEmpty([Global getUserTokenInfo])) {
//        YJLoginViewController *loginVC = [[YJLoginViewController alloc]initWithSelectIndex:0];
//        loginVC.loginType = KLoginUser;
//        [self.navigationController pushViewController:loginVC animated:YES];
//    }else{
        WebViewController *webView = [[WebViewController alloc]initWithTitle:@"弹个瓶" withRequest:[NSString stringWithFormat:@"%@?token=%@",[JSPathUtil urlAppInterestRenderBottle],[Global getUserTokenInfo]]];
        [self.navigationController pushViewController:webView animated:YES];
//    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
